/*--- CSS Reset for full page ---*/
html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden /*Prevent Overflowing from stars*/;
  color: white;
  font-family: "Science Gothic", monospace;
}

body {
  background-image: linear-gradient(
    to bottom,
    rgba(55, 0, 85, 1) 0%,
    rgba(118, 0, 224, 1) 100%
  );
  background-size: auto, cover;
  background-attachment: fixed;
  background-color: #370055;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/*--- Font Definitions ---*/
.science-gothic-font {
  font-family: "Science Gothic", monospace;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "slnt" 0, "wdth" 100, "CTRS" 0;
}

/* Font Definitions */
.font-pixel {
  font-family: "Press Start 2P", cursive;
}

/*--- Star Background Animation ---*/
.star-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place behind content */
  pointer-events: none; /* Do not block mouse clicks */
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  /* Use the same simple twinkle keyframes */
  animation: sparkle linear infinite alternate;
}

@keyframes sparkle {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.1;
  }
}

/*--- Flexbox Container ---*/
.scrim-container {
  width: 100%;
  max-width: 800px; /* Equivalent to max-w-4xl */
  background-color: rgba(0, 0, 0, 0.7); /* Black with 70% opacity */
  backdrop-filter: blur(4px); /* A light blur effect */
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(118, 0, 224, 0.5); /* Outer glow */
  margin-top: 30px;
  margin-bottom: 30px;
}

/*--- Text and Headers ---*/
.header-content {
  text-align: center;
  margin-bottom: 30px;
}

.header-content h1 {
  font-size: 40px;
  color: #fcd34d;
  margin-bottom: 20px;
}
header h1 {
  color: white;
  text-align: center;
  font-family: "Press Start 2P";
}

/*--- Neon Glow Effect ---*/
.neon-glow {
  text-shadow: 0 0 5px #00ffff, 0 0 10px #ff00ff; /* Cyan and Magenta glow */
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.neon-glow:hover {
  text-shadow: 0 0 10px #00ffff, 0 0 20px #ff00ff;
  color: #fff;
}

.marquee {
  background-color: #db2777; /* pink-600 */
  color: white;
  font-weight: bold;
  padding: 5px;
  border: 2px solid #fcd34d; /* yellow-300 */
  margin-bottom: 20px;
}

.navigation {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 20px;
}

.navigation a {
  text-decoration: none;
}

/*--- Navigation Colors ---*/
.nav-home {
  color: #22d3ee;
}
.nav-art {
  color: #f472b6;
}
.nav-code {
  color: #a3e635;
}
.nav-about {
  color: #fbbf24;
}

/*--- Main Content ---*/
.main-content {
  margin-top: 40px;
  margin-bottom: 40px;
}

.captain-log {
  border: 2px dashed #22d3ee;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.captain-log h2 {
  font-size: 18px;
  color: #22d3ee;
  margin-bottom: 8px;
}

.latest-updates h2 {
  font-size: 24px;
  color: #fcd34d;
  margin-bottom: 24px;
  text-align: center;
}

.update-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.update-post {
  flex: 1 1 45%;
  min-width: 300px;
  background-color: rgba(76, 29, 149, 0.5); /* purple-900 bg-opacity-50 */
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.update-post.art {
  border: 2px solid #f472b6;
} /* pink-400 */
.update-post.code {
  border: 2px solid #a3e635;
} /* lime-400 */

.update-post h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
}

.update-post a {
  text-decoration: underline;
  display: block;
  margin-top: 8px;
}

.update-post.art a {
  color: #f9a8d4;
} /* pink-300 */
.update-post.code a {
  color: #d9f99d;
} /* lime-300 */

/*--- Footer ---*/

.footer-content {
  padding-top: 30px;
  text-align: center;
  border-top: 1px solid #7c3aed; /*purple-700*/
  margin-top: 40px;
  padding-bottom: 10px;
}

.footer-content p {
  font-size: 12px;
  color: #9ca3af; /* gray-400 */
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  font-size: 16px;
  text-decoration: none;
}

.footer-links img {
  width: 64px;
  height: 64px;
  display: inline-block;
}

@media (max-width: 768px) {
  .scrim-container {
    padding: 20px;
  }
  .header-content h1 {
    font-size: 32px;
  }
  .navigation {
    gap: 10px;
    font-size: 16px;
    flex-wrap: wrap;
  }
  .update-grid {
    flex-direction: column;
  }
  .update-post {
    min-width: auto;
    flex: 1 1 100%;
  }
}
